SharePointPackageStore Class

SharePointPackageStore represents the packages stored in SharePoint that are available for viewing by Microsoft Learning Components. This class does not add or modify files in SharePoint, but rather updates LearningStore to contain references to learning packages already stored in SharePoint.

Namespace: Microsoft.LearningComponents.SharePoint

Assembly: Microsoft.LearningComponents.SharePoint.dll

Syntax
C#

public class SharePointPackageStore : PackageStore

Constructors
Name Description
Ð SharePointPackageStore

Create the store.

Properties
Name Description
Ð LearningStore

Gets the LearningStore associated with this PackageStore. The LearningStore contains the package information. Inherited from PackageStore.

Methods
Name Description
Ï AddPackageReference

Creates and executes a LearningStoreJob to add a package reference to the PackageStore. Inherited from PackageStore.

Ð GetPackageReader

Gets a PackageReader that can read files from the specified package.

Ï GetPackageReader (PackageItemIdentifier, string)

Internal function that allows StoredLearningSession to reduce database calls. Inherited from PackageStore.

Ð RegisterPackage

Registers a package with the SharePointPackageStore. Any changes to the original file after the package is registered are not reflected in the store.

Ï RemovePackageReference

Creates and executes a LearningStoreJob that removes the package referenced by packageId from PackageStore. This action is permanent and deleted information cannot be recovered. Inherited from PackageStore.

Ð UnregisterPackage

Unregister the package from the store. Once unregistered, the package cannot be viewed.

Ï UpdatePackageLocation

Update the package reference to a new location; Inherited from PackageStore.